package com.tbit.uqbike.client.constant;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * RabbitMQ 配置
 *
 * @author Leon
 * 2017年7月27日 下午2:25:09
 */
@Configuration
public class RabbitMQData {
    private final static Logger log = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);

    public static String queueExchange;

    public static String queueName;

    public static String aiQueue;

    public static String ridequeue;

    public static String ridekey;

    public static String modelqueue;

    public static String payqueue;

    public static String dealqueue;

    public static String paykey;

    public static String orderkey;

    public static String orderexchange;

    public static String mq_ttl;

    public static String logkey;

    public static String logexchange;
    /**
     * 日志推送key
     */
    public static String slskey;
    /**
     * 分账key
     */
    public static String cashkey;
    /**
     * 押金退还队列
     */
    public static String returndepositqueue;
    /**
     * 押金退还key
     */
    public static String returndepositkey;
    /**
     * 分账队列
     */
    public static String cashqueue;
    /**
     * 异常日志 route key
     */
    public static String exceptionKey;
    /**
     * 异常日志队列
     */
    public static String exceptionQueue;

    /**
     * 临时通电队列
     */
    public static String tempPowerQueue;

    @Value("${mq.exchange}")
    public void initqueueExchange(String s) {
        queueExchange = s;
    }

    @Value("${mq.queue}")
    public void initexchange(String s) {
        queueName = s;
    }

    @Value("${mq.aiqueue}")
    public void initaiqueue(String s) {
        aiQueue = s;
    }

    @Value("${mq.ridequeue}")
    public void initridequeue(String s) {
        ridequeue = s;
    }

    @Value("${mq.ridekey}")
    public void initridekey(String s) {
        ridekey = s;
    }

    @Value("${mq.modelqueue}")
    public void initmodelqueue(String s) {
        modelqueue = s;
    }

    @Value("${mq.payqueue}")
    public void initpayqueue(String s) {
        payqueue = s;
    }

    @Value("${mq.dealqueue}")
    public void initdealqueue(String s) {
        dealqueue = s;
    }

    @Value("${mq.paykey}")
    public void initpaykey(String s) {
        paykey = s;
    }

    @Value("${mq.orderkey}")
    public void initorderkey(String s) {
        orderkey = s;
    }

    @Value("${mq.orderexchange}")
    public void initorderexchange(String s) {
        orderexchange = s;
    }

    @Value("${mq.ttl}")
    public void initmq_ttl(String s) {
        mq_ttl = s;
    }

    @Value("${mq.logkey}")
    public void initlogkey(String s) {
        logkey = s;
    }

    @Value("${mq.logexchange}")
    public void initlogexchange(String s) {
        logexchange = s;
    }

    @Value("${mq.slskey}")
    public void initslskey(String s) {
        slskey = s;
    }

    @Value("${mq.cashkey}")
    public void initcashkey(String s) {
        cashkey = s;
    }

    @Value("${mq.returndepositqueue}")
    public void initreturndepositqueue(String s) {
        returndepositqueue = s;
    }

    @Value("${mq.returndepositkey}")
    public void initreturndepositkey(String s) {
        returndepositkey = s;
    }

    @Value("${mq.cashqueue}")
    public void initcashqueue(String s) {
        cashqueue = s;
    }

    @Value("${mq.exceptionKey}")
    public void initExceptionKey(String s){
        exceptionKey = s;
    }

    @Value("${mq.exceptionQueue}")
    public void initExceptionQueue(String s){
        exceptionQueue = s;
    }

    @Value("${mq.tempPowerQueue}")
    public void initTempPowerQueue(String s){
        tempPowerQueue = s;
    }
}
